﻿using Guoc.BigMall.Infrastructure.WeChat.JsSdk;
using Guoc.BigMall.WebService.Dto;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Guoc.BigMall.WebService
{
    public interface ISaleOrderService
    {
        /// <summary>
        ///  下单
        /// </summary>
        int PlaceOrder(SaleOrderCreateDto model);

        /// <summary>
        /// 微信js确认支付
        /// </summary>
        JsPayResult ConfirmPay(PayOrderDto order);

        /// <summary>
        ///  支付回调通知
        /// </summary>
        void PaidNotify();

        SaleOrderVo GetOrderDetail(int order);

        /// <summary>
        ///获取订购商品列表
        /// </summary>
        /// <param name="productIdAndQuantityList">格式：pid-qty,pid2-qty2,pid3-qty3</param>
        /// <returns></returns>
        OrderProductVo GetOrderProduct(string productIdAndQuantityList);


    }
}
